#ifndef KEEPTOKENLIVE_H
#define KEEPTOKENLIVE_H
#include <QObject>
#include <QTimer>

class KeepTokenLive : public QObject
{
    Q_OBJECT

public:
    explicit KeepTokenLive(QObject* parent = nullptr);

    void start();
    void stop();

Q_SIGNALS:
    void tokenExpired();

private:
    void refreshToken();

    QTimer* timer_;
};

#endif // KEEPTOKENLIVE_H
